package com.custom.model;

import lombok.Data;
import java.io.Serializable;

/**
 * @ClassName: RequestInfoBean
 * @description:
 * @author: liukui
 * @date: 2018/11/14 23:48
 * @version: 1.0
 */
@Data
public class RequestInfoBean implements Serializable {
    private static final long serialVersionUID = 8801050930678825233L;
    /**
     * 请求的URl
     */
    private String URL;
    /**
     * 请求的方法名称
     */
    private String re_method;
    /**
     * 请求的ip
     */
    private String ip;
    /**
     * 请求类的方法名称
     */
    private String class_method;

    /**
     * 请求的参数
     */
    private String args;

    /**
     * 响应数据
     */
    private Object res_data;

    /**
     * 请求耗时
     */

    private Long time;

    public RequestInfoBean setURL(String URL) {
        this.URL = URL;
        return this;
    }

    public RequestInfoBean setRe_method(String re_method) {
        this.re_method = re_method;
        return this;
    }

    public RequestInfoBean setIp(String ip) {
        this.ip = ip;
        return this;
    }

    public RequestInfoBean setClass_method(String class_method) {
        this.class_method = class_method;
        return this;
    }

    public RequestInfoBean setArgs(String args) {
        this.args = args;
        return this;
    }

    public RequestInfoBean setRes_data(Object res_data) {
        this.res_data = res_data;
        return this;
    }

    public RequestInfoBean setTime(Long time) {
        this.time = time;
        return this;
    }

    @Override
    public String toString() {
        return "RequestInfoBean{" +
                "URL='" + URL + '\'' +
                ", re_method='" + re_method + '\'' +
                ", ip='" + ip + '\'' +
                ", class_method='" + class_method + '\'' +
                ", args='" + args + '\'' +
                ", res_data=" + res_data +
                ", time=" + time +
                '}';
    }
}
